home *** CD-ROM | disk | FTP | other *** search
- global statusBox, statusWindow, PCflag, curPercentage
-
- on update thePercentage
- set curPercentage to curPercentage + 1
- if curPercentage > 100 then
- set curPercentage to 100
- end if
- set statusBoxBackSprite to 1
- set statusBarSprite to 2
- set statusBoxSprite to 3
- set statusBoxMessage to 4
- set maxStatusBarWidth to 360
- set statusBarWidth to maxStatusBarWidth * (curPercentage * 0.01)
- repeat while the width of sprite statusBarSprite < statusBarWidth
- set the width of sprite statusBarSprite to the width of sprite statusBarSprite + 1
- if the width of sprite statusBarSprite >= statusBarWidth then
- exit repeat
- end if
- updateStage()
- end repeat
- set the width of sprite statusBarSprite to statusBarWidth
- updateStage()
- if thePercentage = 100 then
- set statusBarWidth to maxStatusBarWidth * (thePercentage * 0.01)
- repeat while the width of sprite statusBarSprite < statusBarWidth
- set the width of sprite statusBarSprite to the width of sprite statusBarSprite + 1
- if the width of sprite statusBarSprite >= statusBarWidth then
- exit repeat
- end if
- updateStage()
- end repeat
- set the width of sprite statusBarSprite to statusBarWidth
- updateStage()
- end if
- end
-
- on displayMessage theMessage
- set the text of field "status box message" to theMessage
- set curPercentage to 1
- end
-
- on startMovie
- set the exitLock to 1
- set the modal of statusWindow to 1
- set statusBoxBackSprite to 1
- set statusBarSprite to 2
- set statusBoxSprite to 3
- set statusBoxMessage to 4
- repeat with theSprite = 1 to 4
- puppetSprite(theSprite, 1)
- end repeat
- if PCflag then
- set the textFont of field "status box message" to "Arial"
- set the textSize of field "status box message" to 12
- set the textStyle of field "status box message" to "bold"
- else
- set the textFont of field "status box message" to "Geneva"
- set the textSize of field "status box message" to 14
- set the textStyle of field "status box message" to "bold"
- end if
- set the stretch of sprite statusBarSprite to 1
- end
-